// sp换算
@function px2Sp($size) {
  @return $size * 0.75;
}

.wallet {
  background-color: var(--base-bgColor);
  //   顶部钱包-余额-操作
  .myWallet {
    height: 308px;
    width: 100vw;
    background-image: url("../../../assets/images/image/xxhdpi/my_wallet_background.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;

    .myWallet-wrapper {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      // 钱包
      .myWallet-content {
        // margin-top: 32px;
        width: 116px;
        height: 116px;
        background-color: var(--white-base);
        border-radius: 50%;
        color: var(--primary-color);
        // 余额样式
        .myWallet-remain {
          //   font-size: 48px * 0.75;
          font-size: px2Sp(48px);
          text-align: center;
          margin-top: 34px;
          display: block;
        }
        // 货币单位样式
        .units {
          //   font-size: 10px;
          font-size: px2Sp(10px);
          margin-top: 10px;
          text-align: center;
        }
      }
    }

    //   提现规则
    .rule {
      margin-top: 10px;
      font-size: px2Sp(10px);
      color: var(--white-base);
      text-align: center;
    }

    // 操作按钮
    .opera-btns {
      display: flex;
      margin-top: 24px;
      padding: 0 70px;
      box-sizing: border-box;
      justify-content: space-between;
      button {
        font-weight: bold;
        width: 58px;
        height: 30px;
        border-radius: 4px;
        font-size: px2Sp(14px);
        text-align: center;
        line-height: 30px;
        border: none;
        color: var(--primary-color);
        background-color: var(--white-base);
      }
    }
  }

  //   底部-消费记录
  .consumption {
    margin-top: 6px;
    background-color: var(--white-base);
    height: calc(100vh - 308px - 6px);
    overflow-y: scroll;
    .recordList {
      padding: 0 20px;
      box-sizing: border-box;
      ul {
        li {
          margin-top: 20px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          .recordList-left {
            display: flex;
            flex-direction: column;
            b {
              font-size: px2Sp(14px);
              color: var(--base-color);
            }
            span {
              margin-top: 6px;
              font-size: px2Sp(10px);
              color: var(--gray-medium);
            }
          }
          .recordList-right {
            font-size: 14px;
          }
        }
      }
    }
  }
}
